<!--
        *前台首页
        * 
        *
        * @author     yuanxi
        * @version    2018-02-02 09:48    
-->
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta charset="utf-8">
    <meta http-equiv="Cache-Control" content="no-siteapp">
    <title>商城首页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link href="/public/static/homes/css/iconfont/iconfont.css" rel="stylesheet"/>
    <link href="/public/static/homes/css/common.css" rel="stylesheet"/>
    <link href="/public/static/homes/css/home.css" rel="stylesheet"/>
</head>
<body>
	{:widget("Cate/header")}
	{:widget("Cate/index")}
	{:widget("Cate/footer")}
</body>
<script src="/public/static/homes/js/jquery.js"></script>
<link rel="stylesheet" href="/public/static/homes/js/slick/slick.css"/>
<script src="/public/static/homes/js/slick/slick.min.js"></script>
<script src="/public/static/homes/js/global.js"></script>
<script>
    $('.home-full-banner').slick({
        autoplay: true,
        autoplaySpeed: 5000,
        arrows: false,
        dots: true,
        fade: true
      });

    +function () {
        var bigH=$('.side-category').height();
        $(window).on('scroll resize load',function () {
            var sTop=$(this).scrollTop(),
            valve=$('.home-full-banner').offset().top+$('.home-full-banner').height(),
            wH=$(this).height();

            //控制导航显示
            if (sTop>valve) {
                $('.side-category').show();
            }
            else {
                $('.side-category').hide();
            }
        })
    }();
     zAction.add({
        'category-toggle':function () {
            if ($(this).hasClass('on')) {
                $(this).removeClass('on').prev().slideDown(200);
            }
            else {
                $(this).addClass('on').prev().slideUp(200);
            }
        },

    });

</script>
</html>